package com.itheima.code;

public class CodeDemo2 {
    private String name;
    //实例代码块
    {
        System.out.println("This is a code block");
        name = "Tom";
    }

    public static void main(String[] args) {
        System.out.println("This is a main method");
        new CodeDemo2();

    }
}
